package pl.lodz.p.browarex.base;

import org.apache.log4j.Logger;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;

import pl.lodz.p.browarex.base.interfaces.IDao;



public class BaseDao <MODEL,ID> implements IDao {

	protected Logger log = Logger.getLogger(this.getClass());
	
	@Autowired
	protected SessionFactory sessionFactory;
	
	protected Session getSession() {
		return this.sessionFactory.getCurrentSession();
	}
}
